package priv.stones.service;

import com.baomidou.mybatisplus.service.IService;
import priv.stones.entity.SysRole;

import java.util.List;

/**
 * @Author: Stones
 * @Description:
 * @Date: 2017-10-16
 */
public interface SysRoleService extends IService<SysRole> {

    /**
     * 关联角色和菜单
     *
     * @param menus
     * @param roleID
     * @return
     */
    int relateMenus(String[] menus, String roleID);

    /**
     * 角色拥有的菜单ID
     *
     * @param roleID
     * @return
     */
    List<String> selectMenuIdsById(String roleID);

    /**
     * 删除
     *
     * @param roleID
     */
    void delete(String roleID);


}
